def find_count(s:str,ele):
    return s.count(ele)


print(find_count("11111xyy111111zzzzzz", "1"))


s="123you456-789"
list1=[]
for a in s:
    if a >= '0' and a <= '9':
        # print(a, end="")
      list1.append(a)
print("".join(list1))  #把列表(容器)变成字符串

def num(s:str):
    l1 = ""  #定义空字符串
    for a in s:  #遍历字符串，取出字符串中的每一个字符
        if a >= '0' and a <= '9': # 字符串是在字符串’0‘ ~’9‘之间
            # print(a, end="")
            l1+=a      #就拼接到l1之后
    return  l1     #返回l1这个字符串


